<?php
/**
 * Created by PhpStorm.
 * User: xiaomage
 * Date: 2020/12/22
 * Time: 11:34
 */

namespace app\system\controller;


use common\ApiReturn;
use common\extra\Upload;

class File extends System
{
    public function image()
    {
        $result = Upload::image();

        if ($result) {
            $result = request()->domain() . '/storage/' . $result;
        }

        return ApiReturn::auto($result);
    }
}